/**
 * Copyright &copy; 2019-2022 <a href="https://gitee.com/rit/zx-pm">zx-pm</a> All rights reserved.
 */
package com.zx.pm.modules.zx.entity;

import org.hibernate.validator.constraints.Length;

import com.zx.pm.common.persistence.DataEntity;

/**
 * 供应商信息Entity
 * @author forest
 * @version 2019-01-07
 */
public class Supplier extends DataEntity<Supplier> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 单位名称
	private String contacts;	// 联络人
	private String phone;		// 联系电话
	private String address;		// 联系地址
	private String fenPeiFlag; 
	private String lzdId;
	private String proName;
	private String proNo;
	
	public Supplier() {
		super();
	}

	public Supplier(String id){
		super(id);
	}

	@Length(min=0, max=100, message="单位名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=100, message="联络人长度必须介于 0 和 100 之间")
	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	
	@Length(min=0, max=100, message="联系电话长度必须介于 0 和 100 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=255, message="联系地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getFenPeiFlag() {
		return fenPeiFlag;
	}

	public void setFenPeiFlag(String fenPeiFlag) {
		this.fenPeiFlag = fenPeiFlag;
	}

	public String getLzdId() {
		return lzdId;
	}

	public void setLzdId(String lzdId) {
		this.lzdId = lzdId;
	}

	public String getProName() {
		return proName;
	}

	public void setProName(String proName) {
		this.proName = proName;
	}

	public String getProNo() {
		return proNo;
	}

	public void setProNo(String proNo) {
		this.proNo = proNo;
	}
	
	
}